﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Refrence;
namespace Public
{
    public class AI
    {
        DeepSeek AppendTextAI = null;
        string UserName;
        string LicenseKey;
        public AI(string userName,string licenseKey)
        {
            this.UserName = userName;
            this.LicenseKey = licenseKey;
            
        }
        private bool CheckLicense()
        {
            return true;
        }
        public async Task<string> AppendTextWithAIResponse(string userMessage)
        {
            string res = null;
            if (!CheckLicense())
            { return null; }

            if (AppendTextAI == null)
            {
                AppendTextAI = new DeepSeek(UserName, "请用中文帮我在文本的后面补充一部分文本，使得故事更跌宕，人物更饱满");
            }
            return await   AppendTextAI.GetResponseAsync(userMessage);


        }
    }
}
